<?php
namespace Generator;
class Authentication extends Base {
  public $option_mappings = array();
  
  public function commands() {
    $this->template_root    = dirname(__FILE__).'/templates';
    $this->application_root = getcwd()."/application";
    
    /* Directories */
    $this->directory($this->application_root.'/views/user');
    
    /* Controllers */
    $this->file(
      $this->template_root.'/controllers/user_controller.php'
     ,$this->application_root.'/controllers/user_controller.php'
    );
    
    /* Controller helpers */
    $this->file(
      $this->template_root.'/helpers/user_helpers.php'
     ,$this->application_root.'/helpers/user_helpers.php'
    );
    
    /* Model */
    $this->file(
      $this->template_root.'/models/user.php'
     ,$this->application_root.'/models/user.php'
    );
    
    /* User Views */
    $this->file(
      $this->template_root.'/views/user/forgot_password.xhtml.php'
     ,$this->application_root.'/views/user/forgot_password.xhtml.php'
    );
    
    $this->file(
      $this->template_root.'/views/user/login.xhtml.php'
     ,$this->application_root.'/views/user/login.xhtml.php'
    );
    
    $this->file(
      $this->template_root.'/views/user/signup.xhtml.php'
     ,$this->application_root.'/views/user/signup.xhtml.php'
    );
    
    $this->file(
      $this->template_root.'/views/user/welcome.xhtml.php'
     ,$this->application_root.'/views/user/welcome.xhtml.php'
    );
    /*
    $this->file(
      $this->template_root.'/views/user/_form.xhtml.php'
     ,$this->application_root.'/views/user/_form.xhtml.php'
    );
    
    $this->file(
      $this->template_root.'/views/user/add.xhtml.php'
     ,$this->application_root.'/views/user/add.xhtml.php'
    );
    
    $this->file(
      $this->template_root.'/views/user/create.xhtml.php'
     ,$this->application_root.'/views/user/create.xhtml.php'
    );
    
    $this->file(
      $this->template_root.'/views/user/edit.xhtml.php'
     ,$this->application_root.'/views/user/edit.xhtml.php'
    );
    
    $this->file(
      $this->template_root.'/views/user/enlist.xhtml.php'
     ,$this->application_root.'/views/user/enlist.xhtml.php'
    );
    
    $this->file(
      $this->template_root.'/views/user/update.xhtml.php'
     ,$this->application_root.'/views/user/update.xhtml.php'
    );
    
    $this->file(
      $this->template_root.'/views/user/view.xhtml.php'
     ,$this->application_root.'/views/user/view.xhtml.php'
    );
    */
  }  
}
?>